\(\int x^2 (a+b \tan (c+d \sqrt {x})) \, dx\) [26]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [F]
   Fricas [F]
   Sympy [F]
   Maxima [B] (verification not implemented)
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 18, antiderivative size = 195 \[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {15 i b x \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {15 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {15 i b \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6} \]

[Out]

1/3*a*x^3+1/3*I*b*x^3-2*b*x^(5/2)*ln(1+exp(2*I*(c+d*x^(1/2))))/d+5*I*b*x^2*polylog(2,-exp(2*I*(c+d*x^(1/2))))/
d^2-10*b*x^(3/2)*polylog(3,-exp(2*I*(c+d*x^(1/2))))/d^3-15*I*b*x*polylog(4,-exp(2*I*(c+d*x^(1/2))))/d^4+15/2*I
*b*polylog(6,-exp(2*I*(c+d*x^(1/2))))/d^6+15*b*polylog(5,-exp(2*I*(c+d*x^(1/2))))*x^(1/2)/d^5

Rubi [A] (verified)

Time = 0.33 (sec) , antiderivative size = 195, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {14, 3832, 3800, 2221, 2611, 6744, 2320, 6724} \[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^3}{3}+\frac {15 i b \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}+\frac {15 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {15 i b x \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {1}{3} i b x^3 \]

[In]

Int[x^2*(a + b*Tan[c + d*Sqrt[x]]),x]

[Out]

(a*x^3)/3 + (I/3)*b*x^3 - (2*b*x^(5/2)*Log[1 + E^((2*I)*(c + d*Sqrt[x]))])/d + ((5*I)*b*x^2*PolyLog[2, -E^((2*
I)*(c + d*Sqrt[x]))])/d^2 - (10*b*x^(3/2)*PolyLog[3, -E^((2*I)*(c + d*Sqrt[x]))])/d^3 - ((15*I)*b*x*PolyLog[4,
 -E^((2*I)*(c + d*Sqrt[x]))])/d^4 + (15*b*Sqrt[x]*PolyLog[5, -E^((2*I)*(c + d*Sqrt[x]))])/d^5 + (((15*I)/2)*b*
PolyLog[6, -E^((2*I)*(c + d*Sqrt[x]))])/d^6

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2221

Int[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/((a_) + (b_.)*((F_)^((g_.)*((e_.) +
 (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp[((c + d*x)^m/(b*f*g*n*Log[F]))*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x]
 - Dist[d*(m/(b*f*g*n*Log[F])), Int[(c + d*x)^(m - 1)*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x], x] /; FreeQ[{F,
a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]

Rule 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2611

Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> Simp[(-(
f + g*x)^m)*(PolyLog[2, (-e)*(F^(c*(a + b*x)))^n]/(b*c*n*Log[F])), x] + Dist[g*(m/(b*c*n*Log[F])), Int[(f + g*
x)^(m - 1)*PolyLog[2, (-e)*(F^(c*(a + b*x)))^n], x], x] /; FreeQ[{F, a, b, c, e, f, g, n}, x] && GtQ[m, 0]

Rule 3800

Int[((c_.) + (d_.)*(x_))^(m_.)*tan[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[I*((c + d*x)^(m + 1)/(d*(m + 1))), x
] - Dist[2*I, Int[(c + d*x)^m*(E^(2*I*(e + f*x))/(1 + E^(2*I*(e + f*x)))), x], x] /; FreeQ[{c, d, e, f}, x] &&
 IGtQ[m, 0]

Rule 3832

Int[(x_)^(m_.)*((a_.) + (b_.)*Tan[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Tan[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IGtQ[Simplify[
(m + 1)/n], 0] && IntegerQ[p]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rule 6744

Int[((e_.) + (f_.)*(x_))^(m_.)*PolyLog[n_, (d_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(p_.)], x_Symbol] :> Simp
[(e + f*x)^m*(PolyLog[n + 1, d*(F^(c*(a + b*x)))^p]/(b*c*p*Log[F])), x] - Dist[f*(m/(b*c*p*Log[F])), Int[(e +
f*x)^(m - 1)*PolyLog[n + 1, d*(F^(c*(a + b*x)))^p], x], x] /; FreeQ[{F, a, b, c, d, e, f, n, p}, x] && GtQ[m,
0]

Rubi steps \begin{align*} \text {integral}& = \int \left (a x^2+b x^2 \tan \left (c+d \sqrt {x}\right )\right ) \, dx \\ & = \frac {a x^3}{3}+b \int x^2 \tan \left (c+d \sqrt {x}\right ) \, dx \\ & = \frac {a x^3}{3}+(2 b) \text {Subst}\left (\int x^5 \tan (c+d x) \, dx,x,\sqrt {x}\right ) \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-(4 i b) \text {Subst}\left (\int \frac {e^{2 i (c+d x)} x^5}{1+e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right ) \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {(10 b) \text {Subst}\left (\int x^4 \log \left (1+e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d} \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {(20 i b) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (2,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2} \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {(30 b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (3,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^3} \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {15 i b x \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {(30 i b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (4,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^4} \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {15 i b x \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {15 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {(15 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (5,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^5} \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {15 i b x \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {15 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {(15 i b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(5,-x)}{x} \, dx,x,e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6} \\ & = \frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {15 i b x \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {15 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {15 i b \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 195, normalized size of antiderivative = 1.00 \[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^3}{3}+\frac {1}{3} i b x^3-\frac {2 b x^{5/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {5 i b x^2 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {15 i b x \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {15 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {15 i b \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6} \]

[In]

Integrate[x^2*(a + b*Tan[c + d*Sqrt[x]]),x]

[Out]

(a*x^3)/3 + (I/3)*b*x^3 - (2*b*x^(5/2)*Log[1 + E^((2*I)*(c + d*Sqrt[x]))])/d + ((5*I)*b*x^2*PolyLog[2, -E^((2*
I)*(c + d*Sqrt[x]))])/d^2 - (10*b*x^(3/2)*PolyLog[3, -E^((2*I)*(c + d*Sqrt[x]))])/d^3 - ((15*I)*b*x*PolyLog[4,
 -E^((2*I)*(c + d*Sqrt[x]))])/d^4 + (15*b*Sqrt[x]*PolyLog[5, -E^((2*I)*(c + d*Sqrt[x]))])/d^5 + (((15*I)/2)*b*
PolyLog[6, -E^((2*I)*(c + d*Sqrt[x]))])/d^6

Maple [F]

\[\int x^{2} \left (a +b \tan \left (c +d \sqrt {x}\right )\right )d x\]

[In]

int(x^2*(a+b*tan(c+d*x^(1/2))),x)

[Out]

int(x^2*(a+b*tan(c+d*x^(1/2))),x)

Fricas [F]

\[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int { {\left (b \tan \left (d \sqrt {x} + c\right ) + a\right )} x^{2} \,d x } \]

[In]

integrate(x^2*(a+b*tan(c+d*x^(1/2))),x, algorithm="fricas")

[Out]

integral(b*x^2*tan(d*sqrt(x) + c) + a*x^2, x)

Sympy [F]

\[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int x^{2} \left (a + b \tan {\left (c + d \sqrt {x} \right )}\right )\, dx \]

[In]

integrate(x**2*(a+b*tan(c+d*x**(1/2))),x)

[Out]

Integral(x**2*(a + b*tan(c + d*sqrt(x))), x)

Maxima [B] (verification not implemented)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 618 vs. \(2 (150) = 300\).

Time = 0.40 (sec) , antiderivative size = 618, normalized size of antiderivative = 3.17 \[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {5 \, {\left (d \sqrt {x} + c\right )}^{6} a + 5 i \, {\left (d \sqrt {x} + c\right )}^{6} b - 30 \, {\left (d \sqrt {x} + c\right )}^{5} a c - 30 i \, {\left (d \sqrt {x} + c\right )}^{5} b c + 75 \, {\left (d \sqrt {x} + c\right )}^{4} a c^{2} + 75 i \, {\left (d \sqrt {x} + c\right )}^{4} b c^{2} - 100 \, {\left (d \sqrt {x} + c\right )}^{3} a c^{3} - 100 i \, {\left (d \sqrt {x} + c\right )}^{3} b c^{3} + 75 \, {\left (d \sqrt {x} + c\right )}^{2} a c^{4} + 75 i \, {\left (d \sqrt {x} + c\right )}^{2} b c^{4} - 30 \, {\left (d \sqrt {x} + c\right )} a c^{5} - 30 \, b c^{5} \log \left (\sec \left (d \sqrt {x} + c\right )\right ) + 2 \, {\left (-48 i \, {\left (d \sqrt {x} + c\right )}^{5} b + 150 i \, {\left (d \sqrt {x} + c\right )}^{4} b c - 200 i \, {\left (d \sqrt {x} + c\right )}^{3} b c^{2} + 150 i \, {\left (d \sqrt {x} + c\right )}^{2} b c^{3} - 75 i \, {\left (d \sqrt {x} + c\right )} b c^{4}\right )} \arctan \left (\sin \left (2 \, d \sqrt {x} + 2 \, c\right ), \cos \left (2 \, d \sqrt {x} + 2 \, c\right ) + 1\right ) + 15 \, {\left (16 i \, {\left (d \sqrt {x} + c\right )}^{4} b - 40 i \, {\left (d \sqrt {x} + c\right )}^{3} b c + 40 i \, {\left (d \sqrt {x} + c\right )}^{2} b c^{2} - 20 i \, {\left (d \sqrt {x} + c\right )} b c^{3} + 5 i \, b c^{4}\right )} {\rm Li}_2\left (-e^{\left (2 i \, d \sqrt {x} + 2 i \, c\right )}\right ) - {\left (48 \, {\left (d \sqrt {x} + c\right )}^{5} b - 150 \, {\left (d \sqrt {x} + c\right )}^{4} b c + 200 \, {\left (d \sqrt {x} + c\right )}^{3} b c^{2} - 150 \, {\left (d \sqrt {x} + c\right )}^{2} b c^{3} + 75 \, {\left (d \sqrt {x} + c\right )} b c^{4}\right )} \log \left (\cos \left (2 \, d \sqrt {x} + 2 \, c\right )^{2} + \sin \left (2 \, d \sqrt {x} + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d \sqrt {x} + 2 \, c\right ) + 1\right ) + 360 i \, b {\rm Li}_{6}(-e^{\left (2 i \, d \sqrt {x} + 2 i \, c\right )}) + 90 \, {\left (8 \, {\left (d \sqrt {x} + c\right )} b - 5 \, b c\right )} {\rm Li}_{5}(-e^{\left (2 i \, d \sqrt {x} + 2 i \, c\right )}) + 60 \, {\left (-12 i \, {\left (d \sqrt {x} + c\right )}^{2} b + 15 i \, {\left (d \sqrt {x} + c\right )} b c - 5 i \, b c^{2}\right )} {\rm Li}_{4}(-e^{\left (2 i \, d \sqrt {x} + 2 i \, c\right )}) - 30 \, {\left (16 \, {\left (d \sqrt {x} + c\right )}^{3} b - 30 \, {\left (d \sqrt {x} + c\right )}^{2} b c + 20 \, {\left (d \sqrt {x} + c\right )} b c^{2} - 5 \, b c^{3}\right )} {\rm Li}_{3}(-e^{\left (2 i \, d \sqrt {x} + 2 i \, c\right )})}{15 \, d^{6}} \]

[In]

integrate(x^2*(a+b*tan(c+d*x^(1/2))),x, algorithm="maxima")

[Out]

1/15*(5*(d*sqrt(x) + c)^6*a + 5*I*(d*sqrt(x) + c)^6*b - 30*(d*sqrt(x) + c)^5*a*c - 30*I*(d*sqrt(x) + c)^5*b*c
+ 75*(d*sqrt(x) + c)^4*a*c^2 + 75*I*(d*sqrt(x) + c)^4*b*c^2 - 100*(d*sqrt(x) + c)^3*a*c^3 - 100*I*(d*sqrt(x) +
 c)^3*b*c^3 + 75*(d*sqrt(x) + c)^2*a*c^4 + 75*I*(d*sqrt(x) + c)^2*b*c^4 - 30*(d*sqrt(x) + c)*a*c^5 - 30*b*c^5*
log(sec(d*sqrt(x) + c)) + 2*(-48*I*(d*sqrt(x) + c)^5*b + 150*I*(d*sqrt(x) + c)^4*b*c - 200*I*(d*sqrt(x) + c)^3
*b*c^2 + 150*I*(d*sqrt(x) + c)^2*b*c^3 - 75*I*(d*sqrt(x) + c)*b*c^4)*arctan2(sin(2*d*sqrt(x) + 2*c), cos(2*d*s
qrt(x) + 2*c) + 1) + 15*(16*I*(d*sqrt(x) + c)^4*b - 40*I*(d*sqrt(x) + c)^3*b*c + 40*I*(d*sqrt(x) + c)^2*b*c^2
- 20*I*(d*sqrt(x) + c)*b*c^3 + 5*I*b*c^4)*dilog(-e^(2*I*d*sqrt(x) + 2*I*c)) - (48*(d*sqrt(x) + c)^5*b - 150*(d
*sqrt(x) + c)^4*b*c + 200*(d*sqrt(x) + c)^3*b*c^2 - 150*(d*sqrt(x) + c)^2*b*c^3 + 75*(d*sqrt(x) + c)*b*c^4)*lo
g(cos(2*d*sqrt(x) + 2*c)^2 + sin(2*d*sqrt(x) + 2*c)^2 + 2*cos(2*d*sqrt(x) + 2*c) + 1) + 360*I*b*polylog(6, -e^
(2*I*d*sqrt(x) + 2*I*c)) + 90*(8*(d*sqrt(x) + c)*b - 5*b*c)*polylog(5, -e^(2*I*d*sqrt(x) + 2*I*c)) + 60*(-12*I
*(d*sqrt(x) + c)^2*b + 15*I*(d*sqrt(x) + c)*b*c - 5*I*b*c^2)*polylog(4, -e^(2*I*d*sqrt(x) + 2*I*c)) - 30*(16*(
d*sqrt(x) + c)^3*b - 30*(d*sqrt(x) + c)^2*b*c + 20*(d*sqrt(x) + c)*b*c^2 - 5*b*c^3)*polylog(3, -e^(2*I*d*sqrt(
x) + 2*I*c)))/d^6

Giac [F]

\[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int { {\left (b \tan \left (d \sqrt {x} + c\right ) + a\right )} x^{2} \,d x } \]

[In]

integrate(x^2*(a+b*tan(c+d*x^(1/2))),x, algorithm="giac")

[Out]

integrate((b*tan(d*sqrt(x) + c) + a)*x^2, x)

Mupad [F(-1)]

Timed out. \[ \int x^2 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int x^2\,\left (a+b\,\mathrm {tan}\left (c+d\,\sqrt {x}\right )\right ) \,d x \]

[In]

int(x^2*(a + b*tan(c + d*x^(1/2))),x)

[Out]

int(x^2*(a + b*tan(c + d*x^(1/2))), x)